<template>
  <div class="max">
    <div class="geDan">
      <div class="imgs" @click="$router.push({path:`/playlist/${id}`})">
        <i class="iconfont icon-24gf-playCircle" />
        <img :src="src">
      </div>
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    src: {
      type: String,
      required: true
    },
    id: {
      type: Number,
      required: true
    }
  },
  data() {
    return {

    }
  },
  created() {},
  mounted() {},
  methods: {}
}
</script>

<style scoped lang="less">
.max {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  .geDan {
    height: 220px;
    .imgs {
      cursor: pointer;
      transition: all 0.1s;
      position: relative;
      height: 178px;
      width: 100%;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 20px;
      i {
        display: none;
        font-size: 40px;
        position: absolute;
        top: 50%;
        left: 50%;
        color: rgba(192, 189, 189, 0.836);
        transform: translate(-50%, -50%);
        border-radius: 50%;
        padding: 0;
      }
      img {
        width: 100%;
        height: 100%;
      }
    }
    .imgs:hover {
      box-shadow: 2px 12px 13px #887f7f82;
    }
    .imgs:hover i {
      display: block;
    }
  }
}
</style>
